<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Entrada a GoS</title>
        <link rel="stylesheet" href="estilo.css" />
    </h:head>
    <h:body>
        <h:form id="formId">
            <h1><span class="Estilo1">Global Observing System</span></h1>
            <h1><h:outputText value="Login"/></h1>
            <h:panelGrid columns="3">
                <h:outputText value="Usuario" />
                <h:inputText id="username" value="#{faces.logon}" required="true"
                             validatorMessage="valor requerido!"
                             requiredMessage="valor requerido!" >
                    <f:validateLength minimum="1" />
                </h:inputText>
                <h:message for="username" styleClass="error"/>
                <h:outputText value="Clave" />
                <h:inputSecret id="password" value="#{faces.pass}" required="true" requiredMessage="valor requerido"
                             validatorMessage="valor requerido!"/>
                <h:message for="password" styleClass="error"/>
                <h:commandButton value="Entrar" action="#{faces.logear}"/>
            </h:panelGrid>

        </h:form>
        <h:form>
            <div id="ext">
                <h4><li><h:commandButton action="crearUsuario.xhtml"  value=" Crear Usuario"> </h:commandButton></li></h4>
            </div>
        </h:form>




    </h:body>
</html>